package br.com.uti.resource;

import java.util.ArrayList;

import br.com.uti.controle.PacienteControle;
import br.com.uti.model.Paciente;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

@Path ("/paciente")
public class PacienteResource {
	
	@GET
	@Path ("/listarTodos")
	@Produces ("application/json")
	public ArrayList<Paciente> listarTodos(){
		return new PacienteControle().listarTodos();
	}

}
